//using System.Collections;
//using UnityEngine;
//using UnityEngine.UI;

//public class RODOInfoPanelController : MonoBehaviour, IOnEndAnimation, IBackAction
//{
//	private int currentAgreement = 1;

//	private void Awake()
//	{
//		Globals.instance.backManager.RegisterObject(this);
//		StartCoroutine(WaitToAppearPanel());
//		SetMainText();
//	}

//	private IEnumerator WaitToAppearPanel()
//	{
//		yield return new WaitForSeconds(1f);
//		GetComponent<Animator>().SetTrigger("Appear");
//	}

//	private void SetMainText()
//	{
//		Text component = base.transform.FindDeepChild("MainTextField").GetComponent<Text>();
//		component.text = LanguageController.instance.GetRichString("RODO_InfoPanel_MainText");
//	}

//	public void OnAgreeButtonPressed()
//	{
//		AudioController.instance.Play("button");
//		if (currentAgreement == 1)
//		{
//			currentAgreement = 2;
//			base.transform.FindDeepChild("AgreementTextGroup").GetComponent<Animator>().SetTrigger("Next");
//			ChangeAgreementCounter();
//		}
//		else if (currentAgreement == 2)
//		{
//			UserPreferences.instance.playerData.RODOAccepted = true;
//			UserPreferences.instance.Save();
//			//Globals.instance.OnRodoAccepted();
//			GetComponent<Animator>().SetTrigger("Disappear");
//		}
//	}

//	public void OnDisagreeButtonPressed()
//	{
//		AudioController.instance.Play("button");
//		Application.Quit();
//	}

//	public void OnBackAction()
//	{
//	}

//	public void ChangeAgreementCounter()
//	{
//		base.transform.FindDeepChild("Counter").GetComponent<Text>().text = "2 / 2";
//	}

//	public void OnEndAnimation()
//	{
//		Globals.instance.backManager.UnregisterObject(this);
//		UnityEngine.Object.Destroy(base.gameObject);
//	}
//}
